#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
    int a, b, c, d;
    scanf("%d %d %d %d", &a, &b, &c, &d);
    int Sum = 0;
    Sum = a + b + c + d;
    double Average = (a + b + c + d) / 4.0;
    printf("Sum = %d; Average = %.1lf", Sum, Average);

    return 0;
}